#include <avr/io.h>
#include <avr/interrupt.h>
#include "../adc/spi.h"
#include "eeprom.h"

void Init_EEPROM(void)
{
 CS_PROM_CONF;
 CS_PROM_DISABLE;
}

unsigned char read_EEPROM(unsigned char addr)
{
 Init_SPI(1<<SPE|1<<MSTR|0<<CPHA|0<<CPOL,1);
 CS_PROM_ENABLE;
 	//transmit_spi();
 CS_PROM_DISABLE;
 return 0;
}

void write_EEPROM(unsigned char addr,unsigned char data)
{
 CS_PROM_ENABLE;
 	//transmit_spi();
 CS_PROM_DISABLE;

}
